package com.mohunhun.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "文章回复实体")
public class ArticleReply {

    @Schema(description = "回复ID")
    private Long id;

    @Schema(description = "所属文章ID")
    private Long articleId;

    @Schema(description = "回复用户ID")
    private Long postUserId;

    @Schema(description = "父级回复ID，用于楼中楼（若为顶级回复则为null）")
    private Long replyId;

    @Schema(description = "父级回复的用户ID（若为顶级回复则为null）")
    private Long replyUserId;

    @Schema(description = "回复内容")
    private String content;

    @Schema(description = "点赞数")
    private Integer likeCount = 0;

    @Schema(description = "状态：0-禁用，1-启用")
    private Byte state;

    @Schema(description = "删除状态：0-未删除，1-已删除")
    private Byte deleteState;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "用户信息")
    private User user;
}